import { BuiltInFunc } from "./com/BuiltInFunc";

export class ReadFileToStringNode extends BuiltInFunc {

    constructor(name?: string) {
        super(name ? name : 'ReadFileToString');
        this.edit.out = false
        this.canReference = true
        this.funcName = 'readFileToString';
        this.bgColor = '#673AB7'
        this.addAttribute({
            name: "resultType",
            value: "string",
            type: 'string',
            options: ['string', 'binary']
        })
        this.addInput({ key: 'path' })
        this.addOutput({ key: 'output' })
        this.refresh()
    }

    public get className(){
        return 'ReadFileToString'
    }
}